#pragma once

#include <windows.h>
#include <stdio.h>

#define strcmp_ignorecase(str1, str2)\
  (CompareString(LOCALE_SYSTEM_DEFAULT, NORM_IGNORECASE, str1, (int)wcslen(str1), str2, (int)wcslen(str2)) == CSTR_EQUAL)

class CF_CORE_API CCF_CfgReader 
{
private:
  FILE *m_file;

public:
  CCF_CfgReader(char *szFileName);
  ~CCF_CfgReader();

  bool IsReady();
  bool ReadEntry(char **ppNameOut, char **ppValueOut);
};
